
package com.work.util;

import java.lang.annotation.*;

import javax.validation.*;

import com.work.util.TimeValidator.TimeFormatType;

@Documented
@Constraint(validatedBy = TimeValidator.class)
@Target(value = {ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface CorrectTimeFormat {
	TimeFormatType pattern() default TimeFormatType.HH_MM_SS;
	
	String message() default "{pl.com.validator.custom.pattern}";
	
	Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
